package com.hnzq.cloud.api;


import com.hnzq.cloud.dto.ListSiteAreaDto;
import com.hnzq.cloud.model.Result;
import com.hnzq.cloud.warehouseParam.AddParam;
import com.hnzq.cloud.warehouseParam.FindAroundSiteAreaParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "fresh-address",contextId = "WarehouseApi",path = "freWarerhouse")
public interface WarehouseApi {
    @PostMapping("/addWarehouse")
    Result addWarehouse(@RequestBody AddParam addParam);
    @DeleteMapping("/deletWarehouse")
    Result deletWarehouse(@RequestParam("warehouseId") Integer warehouseId);
    @PutMapping("updateWarehouse")
    Result updateWarehouse(@RequestBody AddParam addParam);
    @GetMapping("/findWarehouse")
    Result findWarehouse(@RequestParam("warehouseId") Integer warehouseId);
    //根据站点区域标签（主键）查找订单
//    @GetMapping("findOder")
//    Result findOder(@RequestParam("siteAreaId") Integer siteAreaId);
    //根据仓库位置查询所有的站点区域
    @GetMapping("/findAroundSiteArea")
    Result<ListSiteAreaDto> findAroundSiteArea(@RequestBody FindAroundSiteAreaParam findAroundSiteAreaParam);

}
